Test that interface objects are deletable.
diff --git a/DOMCore/tests/submissions/Ms2ger/MANIFEST b/DOMCore/tests/submissions/Ms2ger/MANIFEST index be23b23..55c168c 100644 --- a/DOMCore/tests/submissions/Ms2ger/MANIFEST +++ b/DOMCore/tests/submissions/Ms2ger/MANIFEST 
@@ -60,6 +60,7 @@  Element-siblingElement-null.xhtml  Element-tagName.html  EventTarget-dispatchEvent.html +interfaces.html  Node-appendChild.html  Node-cloneNode.html  Node-insertBefore.html 
diff --git a/DOMCore/tests/submissions/Ms2ger/interfaces.html b/DOMCore/tests/submissions/Ms2ger/interfaces.html new file mode 100644 index 0000000..daa0dc1 --- /dev/null +++ b/DOMCore/tests/submissions/Ms2ger/interfaces.html 
@@ -0,0 +1,38 @@ +<!DOCTYPE html> +<title>Interfaces</title> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<div id="log"></div> +<script> +function testInterfaceDeletable(iface) { + test(function() { + assert_true(!!window[iface], "Interface should exist.") + assert_true(delete window[iface], "The delete operator should return true.") + assert_equals(window[iface], undefined, "Interface should be gone.") + }, "Should be able to delete " + iface + ".") +} +[ + "Event", + "CustomEvent", + "EventTarget", + "Node", + "Document", + "DOMImplementation", + "DocumentFragment", + "ProcessingInstruction", + "DocumentType", + "Element", + "Attr", + "CharacterData", + "Text", + "Comment", + "NodeIterator", + "TreeWalker", + "NodeFilter", + "NodeList", + "HTMLCollection", + "DOMStringList", + "DOMTokenList", + "DOMSettableTokenList" +].forEach(testInterfaceDeletable); +</script>